import java.sql.Date;

public class Deposit {

	private long depositId;
	private long depositeType;
	private long custId;
	private Date openningDate;
	private Date endingDate;
	private Date lastCalcDate;
	private double amount;
	private double estimatedAmount;
	private double finalEstimatedAmount;
	private double interestRate;

	public Deposit(long depositeType, long custId, Date openningDate, Date endingDate, double amount) {

		this.setDepositeType(depositeType);
		this.setCustId(custId);
		this.setOpenningDate(openningDate);
		this.setEndingDate(endingDate);
		this.setAmount(amount);
		this.setEstimatedAmount(amount);
		this.setFinalEstimatedAmount(amount);
	}

	public Deposit() {
		// TODO Auto-generated constructor stub
	}

	public long getDepositId() {
		return depositId;
	}

	public void setDepositId(long depositId) {
		this.depositId = depositId;
	}

	public long getDepositeType() {
		return depositeType;
	}

	public void setDepositeType(long depositeType) {
		this.depositeType = depositeType;
	}

	public long getCustId() {
		return custId;
	}

	public void setCustId(long custId) {
		this.custId = custId;
	}

	public Date getOpenningDate() {
		return openningDate;
	}

	public void setOpenningDate(Date date) {
		this.openningDate = date;
	}

	public Date getEndingDate() {
		return endingDate;
	}

	public void setEndingDate(Date endingDate) {
		this.endingDate = endingDate;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public double getEstimatedAmount() {
		return estimatedAmount;
	}

	public void setEstimatedAmount(double estimatedAmount) {
		this.estimatedAmount = estimatedAmount;
	}

	public double getFinalEstimatedAmount() {
		return finalEstimatedAmount;
	}

	public void setFinalEstimatedAmount(double finalEstimatedAmount) {
		this.finalEstimatedAmount = finalEstimatedAmount;
	}

	public double getInterestRate() {
		return interestRate;
	}

	public void setInterestRate(double interestRate) {
		this.interestRate = interestRate;
	}

	public Date getLastCalcDate() {
		return lastCalcDate;
	}

	public void setLastCalcDate(Date lastCalcDate) {
		this.lastCalcDate = lastCalcDate;
	}

	@Override
	public String toString() {
		return "Deposit [amount=" + amount + ", custId=" + custId + ", depositId=" + depositId + ", depositeType=" + depositeType + ", endingDate=" + endingDate + ", estimatedAmount=" + estimatedAmount + ", finalEstimatedAmount=" + finalEstimatedAmount + ", interestRate=" + interestRate + ", openningDate=" + openningDate + "]";
	}

}